<extend name="Public/base"/><block name="body"><div class="Tool_Bar" id="Action_Bar">
<dl>
	<dt>行为管理</dt>
    {$Main_Nav}
</dl>
</div>
<div style="display: none">
<form id="Action_Search_From" >
<fieldset class="Form_1 Form_2">
<div class="formitm">
	<label class="lab" for="for_name">标识 ：</label>
	<div class="ipt"><input name="s_name"  id="for_name"type="text" class="easyui-textbox" style="height:30px;"></div>
</div><div class="formitm">
	<label class="lab" for="for_title">标题 ：</label>
	<div class="ipt"><input name="s_title"  id="for_title"type="text" class="easyui-textbox" style="height:30px;"></div>
</div><div class="formitm">
	<label class="lab" for="for_remark">描述 ：</label>
	<div class="ipt"><input name="s_remark" id="for_remark" class="easyui-textbox" style="height:30px;"></div>
</div><div class="formitm">
	<label class="lab" for="for_type">类型 ：</label>
	<div class="ipt"><select name="s_type" id="for_s_type" class="easyui-combobox" style="height:30px;" data-options="url:'{:U("Admin/Function/get_field_option")}&f_id=51&r_type=json',valueField:'id',textField:'text',value:null"></select></div>
</div><div class="formitm">
	<label class="lab" for="for_status">状态 ：</label>
	<div class="ipt"><select name="s_status" id="for_s_status" class="easyui-combobox" style="height:30px;" data-options="url:'{:U("Admin/Function/get_field_option")}&f_id=52&r_type=json',valueField:'id',textField:'text',value:null"></select></div>
</div><div class="formitm">
	<label class="lab" for="for_update_time">修改时间 ：</label>
	<div class="ipt"><input name="s_update_time_min" type="text" class="easyui-datebox" style="height:30px;"> - <input name="s_update_time_max" type="text" class="easyui-datebox" style="height:30px;"></div>
</div></fieldset>
</form>
</div>
<table id="Action_Data_List"></table>
<script charset="utf-8" src="{:U('Admin/Function/get_field_option',array('f_id'=>'51','r_type'=>'json_list'))}"></script>
<script charset="utf-8" src="{:U('Admin/Function/get_field_option',array('f_id'=>'52','r_type'=>'json_list'))}"></script>
<script type="text/javascript">
$(function() {
	$("#Action_Data_List").datagrid({
		url : "{:U('Action/index')}",
		fit : true,
		striped : true,
		border : false,
		pagination : true,
		pageSize : 20,
		pageList : [ 10, 20, 50 ],
		pageNumber : 1,
		sortName : 'id',
		sortOrder : 'desc',
		toolbar : '#Action_Bar',
		singleSelect : true,
		frozenColumns:[[
			{field : 'id',title : 'ID',width : 40,sortable:true}
,
			{field : "name",title : "标识",width :100}
			,
			{field : "title",title : "标题",width :150}
				
		]],
		columns : [[

			{field : "remark",title : "描述",width :180},
			
			{field : "type",title : "类型",width :50,formatter: function (value, row, index) {
					return op_type[value];
			}},
			
			{field : "status",title : "状态",width :50,formatter: function (value, row, index) {
					return op_status[value];
			}},
			
			{field : "update_time",title : "修改时间",width :100,formatter: function (value, row, index) {
				return u_to_ymd(value)
			}},
				

			{field : "operate",title : "操作",width : 200,formatter: function (value, row, index) {
				operate_menu='';
				
				<if condition="Is_Auth('Admin/Action/edit')">
				operate_menu = operate_menu+"<a href='<?php echo U('edit'); ?>&id="+row.id+"' >编辑</a>";
				</if>

				<if condition="Is_Auth('Admin/Action/del')">
				operate_menu = operate_menu+" | <a href='#' onclick=\"Data_Ajax('<?php echo U('del'); ?>&id="+row.id+"','Action_Data_List');\">删除</a>";
				</if>

				return operate_menu;
			}}
		]]
	});
})
<!-- 扩展数据 starp-->
<!-- 扩展数据 end-->
</script></block>